Page({
  data: {
    totalPoints: 0,
    currentYearPoints: 0,
    lastYearPoints: 0,
    activeTab: 0,
  },

  onTabChange(event) {
    this.setData({
      activeTab: event.detail.index
    });
  }
});